import request from "@/utils/request";

export function getList(params) {
  return request({
    url: "admin/hotSearch/page",
    method: "get",
    params,
    headers: {
      authorization: localStorage.getItem("token"),
    },
  });
}

export function addList(data) {
  return request({
    url: "admin/hotSearch",
    method: "post",
    data,
    headers: {
      authorization: localStorage.getItem("token"),
    },
  });
}
export function del(data) {
  return request({
    url: "admin/hotSearch",
    method: "delete",
    data,
    headers: {
      authorization: localStorage.getItem("token"),
    },
  });
}

export function got(data) {
  return request({
    url: "admin/hotSearch",
    method: "put",
    data,
    headers: {
      authorization: localStorage.getItem("token"),
    },
  });
}